var mysql      = require('mysql');
var connection = mysql.createConnection({
    host     : 'localhost',
    user     : 'root',
    password : '13209202523cyf',
    database : 'stu'
});

connection.connect();

var sql ="delete from student where id='1'";

connection.query(sql, function (error, results, fields) {
    if (error) throw error;
    console.log(results);
});